class Felines:
    def speciality(self):
        print("猫科动物善于奔跑")
class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f'{self.name}爱吃鱼')
        print(f'{self.name}会爬树')
cat = Cat()
cat.speciality()

# super()函数
class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f'{self.name}爱吃鱼')
        print(f'{self.name}会爬树')
        print('-' * 20)
        super().speciality()
cat = Cat()
cat.speciality()
